var log4js = require("log4js")

log4js.configure({
    appenders:[
        {type:"console"},
        { type:"file", filename:"logs/test.log",maxLogSize:1024*1024,backups:100 }
    ],
    levels:{
        normal : "ERROR",
        doc : "info"
    }
})

var logger = log4js.getLogger("normal")
var doclogger = log4js.getLogger("doc")

for (var i = 0; i < 10000; i++) {
    doclogger.info("woqu" + i)
    doclogger.debug("woqu" + i)
    doclogger.warn("woqu" + i)

    logger.debug("hahaha" + i)
    logger.info("hahaha" + i)
    logger.warn("hahaha" + i)
    logger.error("hahaha" + i)
    logger.fatal("hahaha" + i)
}


